<?php
	
	$base_folder = "elggchat/_graphics/";
	$smiley = get_input("smiley");
	
	if($smiley){
		
		$filename = $CONFIG->pluginspath . $base_folder . $smiley;
		$contents = @file_get_contents($filename);
		
		header("Cache-Control: no-cache, no-store, must-revalidate");
		
		echo $contents;
		
	}
	exit();
?>